<template>
  <div class="title-container">
    <div class="title">
      <h2>{{ info.name }}好物
        <div class="line" :style="{'background-image':'linear-gradient(-40deg, #FFC781 0%, #FF9650 100%)'}"></div>
      </h2>
    </div>
    <div class="flex">
      <ul class="card" v-for="item in info.goodsList" :key="item.id">
        <li>
          <img :src="item.list_pic_url" />
          <div class="footer">
            <p class="footer-title">{{ item.name }}</p>
            <p class="price">&yen;{{ item.retail_price }}</p>
          </div>
        </li>
      </ul>
      <div class="end">
        <p class="haowu">{{ info.name }}好物</p>
        <p>
          <svg
            t="1676377801066"
            class="icon"
            viewBox="0 0 1024 1024"
            version="1.1"
            xmlns="http://www.w3.org/2000/svg"
            p-id="2671"
            width="200"
            height="200"
          >
            <path
              d="M514 114.3c-227.2 0-410.5 190.7-398.3 420.5C126.4 737 290.1 900.7 492.3 911.4c7.3 0.4 14.5 0.6 21.7 0.6 220 0 398.8-178.9 398.8-398.8 0-220-178.8-398.9-398.8-398.9z m0 755c-6.4 0-13-0.2-19.4-0.5-87.3-4.6-169.7-41.6-232.2-104s-99.4-144.9-104-232.2c-5.2-98.8 29.3-192.6 97.2-264.3C323.6 196.6 415.4 157 514 157c196.4 0 356.1 159.8 356.1 356.1S710.4 869.3 514 869.3z"
              p-id="2672"
            ></path>
            <path
              d="M554.2 333.6L524 363.8l117.7 117.7c3 3 5.4 6.3 7.4 9.8H325V534h324.1c-1.9 3.5-4.4 6.9-7.4 9.9L524 662l30.3 30.2L672 574c33.7-33.9 33.7-88.9-0.1-122.7L554.2 333.6z"
              p-id="2673"
            ></path>
          </svg>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["info",'bgc'],
};
</script>

<style scoped lang='scss'>
.title-container {
  padding: 0 20px 0 20px;
  background-color: #f8f8f8;
  .title {
    height: 150px;
    background-color: #f8f8f8;
    text-align: center;
    padding: 61px 0 36px 0;
    @include dot;
    h2 {
      font-size: 38px;
      color: #333333;
      letter-spacing: 0;
      font-weight: 600;
      position: relative;
      z-index: 999999999;
      .line{
        position: absolute;
        left: 50%;
        transform: translateX(-100%);
        bottom: 0;
        width: 81px;
        height: 13px;
        z-index: -1;
        // background-color: red;
      
      }
    }
  }
  .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .card {
    width: 350px;
    height: 490px;
    li {
      width: 350px;
      height: 350px;
      background-color: #fff;
      text-align: center;
      img {
        width: 292px;
        height: 350px;
        background-color: #fff;
      }
      .footer {
        height: 96px;
        padding-top: 17px;
        background-color: #f8f8f8;
        .footer-title {
          font-size: 26px;
          color: #333333;
          text-align: left;
          letter-spacing: 0;
          font-weight: 500;
          margin-bottom: 5px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        .price {
          font-size: 26px;
          text-align: left;
          color: #9e4242;
          letter-spacing: 0;
          font-weight: 400;
        }
      }
    }
  }
  .end {
    width: 350px;
    height: 350px;
    padding-top: 112px;
    text-align: center;
    font-size: 32px;
    color: #666666;
    font-weight: 400;
    background-color: #fff;
    .haowu {
      margin-bottom: 21px;
    }
    svg {
      width: 58px;
      height: 58px;
      fill: #b7a673;
    }
  }
}
</style>